package com.example.sls.service.impl.social;

import com.example.sls.pojo.social.Activities;
import com.example.sls.dao.social.ActivitiesDao;
import com.example.sls.service.intserfaces.social.ActivitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 活动表(Activities)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:57
 */
@Service
public class ActivitiesServiceImpl implements ActivitiesService {
  @Autowired
  ActivitiesDao activitiesDao;

  @Override
  public Activities queryById(Integer id) {
    return activitiesDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return activitiesDao.deleteById(id);
  }

  @Override
  public int update(Activities activities) {
    return activitiesDao.update(activities);
  }

  @Override
  public int insert(Activities activities) {
    return activitiesDao.insert(activities);
  }

  @Override
  public long count() {
    return activitiesDao.count();
  }

  @Override
  public List<Activities> queryAllByLimit(Activities activities, Integer pageSize, Integer offset) {
    return activitiesDao.queryAllByLimit(activities, pageSize, offset);
  }
}
